package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CarShipMapper;
import com.ruoyi.system.domain.CarShip;
import com.ruoyi.system.service.ICarShipService;

/**
 * 车船调度Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class CarShipServiceImpl implements ICarShipService 
{
    @Autowired
    private CarShipMapper carShipMapper;

    /**
     * 查询车船调度
     * 
     * @param id 车船调度主键
     * @return 车船调度
     */
    @Override
    public CarShip selectCarShipById(Long id)
    {
        return carShipMapper.selectCarShipById(id);
    }

    /**
     * 查询车船调度列表
     * 
     * @param carShip 车船调度
     * @return 车船调度
     */
    @Override
    public List<CarShip> selectCarShipList(CarShip carShip)
    {
        return carShipMapper.selectCarShipList(carShip);
    }

    /**
     * 新增车船调度
     * 
     * @param carShip 车船调度
     * @return 结果
     */
    @Override
    public int insertCarShip(CarShip carShip)
    {
        return carShipMapper.insertCarShip(carShip);
    }

    /**
     * 修改车船调度
     * 
     * @param carShip 车船调度
     * @return 结果
     */
    @Override
    public int updateCarShip(CarShip carShip)
    {
        return carShipMapper.updateCarShip(carShip);
    }

    /**
     * 批量删除车船调度
     * 
     * @param ids 需要删除的车船调度主键
     * @return 结果
     */
    @Override
    public int deleteCarShipByIds(Long[] ids)
    {
        return carShipMapper.deleteCarShipByIds(ids);
    }

    /**
     * 删除车船调度信息
     * 
     * @param id 车船调度主键
     * @return 结果
     */
    @Override
    public int deleteCarShipById(Long id)
    {
        return carShipMapper.deleteCarShipById(id);
    }
}
